home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / oolregex / regexpte.cpp < prev    next >
C/C++ Source or Header  |  1995-11-17  |  2KB  |  69 lines

  1. // RegExpTest.cpp : Defines the class behaviors for the application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "RegExpTest.h"
  6. #include "RegExdlg.h"
  7.  
  8. #ifdef _DEBUG
  9. #undef THIS_FILE
  10. static char BASED_CODE THIS_FILE[] = __FILE__;
  11. #endif
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CRegExpTestApp
  15.  
  16. BEGIN_MESSAGE_MAP(CRegExpTestApp, CWinApp)
  17.     //{{AFX_MSG_MAP(CRegExpTestApp)
  18.         // NOTE - the ClassWizard will add and remove mapping macros here.
  19.         //    DO NOT EDIT what you see in these blocks of generated code!
  20.     //}}AFX_MSG
  21.     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  22. END_MESSAGE_MAP()
  23.  
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CRegExpTestApp construction
  26.  
  27. CRegExpTestApp::CRegExpTestApp()
  28. {
  29.     // TODO: add construction code here,
  30.     // Place all significant initialization in InitInstance
  31. }
  32.  
  33. /////////////////////////////////////////////////////////////////////////////
  34. // The one and only CRegExpTestApp object
  35.  
  36. CRegExpTestApp theApp;
  37.  
  38. /////////////////////////////////////////////////////////////////////////////
  39. // CRegExpTestApp initialization
  40.  
  41. BOOL CRegExpTestApp::InitInstance()
  42. {
  43.     // Standard initialization
  44.     // If you are not using these features and wish to reduce the size
  45.     //  of your final executable, you should remove from the following
  46.     //  the specific initialization routines you do not need.
  47.  
  48.     Enable3dControls();
  49.     LoadStdProfileSettings();  // Load standard INI file options (including MRU)
  50.  
  51.     CRegExpTestDlg dlg;
  52.     m_pMainWnd = &dlg;
  53.     int nResponse = dlg.DoModal();
  54.     if (nResponse == IDOK)
  55.     {
  56.         // TODO: Place code here to handle when the dialog is
  57.         //  dismissed with OK
  58.     }
  59.     else if (nResponse == IDCANCEL)
  60.     {
  61.         // TODO: Place code here to handle when the dialog is
  62.         //  dismissed with Cancel
  63.     }
  64.  
  65.     // Since the dialog has been closed, return FALSE so that we exit the
  66.     //  application, rather than start the application's message pump.
  67.     return FALSE;
  68. }
  69.